package com.uinnova.websocketstu.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/*
*@author 王刚
*@date 2019-02-01 09:30
*
*/
@Configuration
public class WebSocketConfig {
    /*
    *serverEndpointExporter会自动注册使用@serverEndpoint注解的Websocket endpoint
    */

    @Bean
    public ServerEndpointExporter serverEndpointExporter(){
        return new ServerEndpointExporter();
    }
}
